<?php

namespace PHD;

class Logger {

    public static function write($msg) {
        	
	$config = Config::getInstance();
       	$logfile = ROOT . '/log/' . $config->logfile;

        $h = fopen($logfile, 'a');
       	fwrite($h, "[" . date('r') . "] " . $msg . PHP_EOL);
        fclose($h);
                
    }

}